package com.luhuiguo.cms.shared.event;

import com.google.gwt.event.shared.GwtEvent;
import com.luhuiguo.cms.shared.model.ChannelTreeModel;

public class ChannelDeletedEvent extends GwtEvent<ChannelDeletedEventHandler> {
    
    public static Type<ChannelDeletedEventHandler> TYPE = new Type<ChannelDeletedEventHandler>();

    private final ChannelTreeModel channelTreeModel;
    
    
    
    public ChannelDeletedEvent(ChannelTreeModel channelTreeModel) {
        this.channelTreeModel = channelTreeModel;
    }
    
    

    public ChannelTreeModel getChannelTreeModel() {
        return channelTreeModel;
    }



    @Override
    public Type<ChannelDeletedEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(ChannelDeletedEventHandler handler) {
        handler.onChannelDeleted(this);
    }
}
